<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perl5340delta - what is new for perl v5.34.0 - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perl5340delta">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5340delta.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perl5340delta">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perl5340delta">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perl5340delta">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perl5340delta">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perl5340delta">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perl5340delta">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perl5340delta">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perl5340delta">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perl5340delta">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perl5340delta">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perl5340delta">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perl5340delta">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perl5340delta">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perl5340delta">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perl5340delta">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perl5340delta">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perl5340delta">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perl5340delta">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perl5340delta">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perl5340delta">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perl5340delta">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perl5340delta">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perl5340delta">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perl5340delta">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perl5340delta">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perl5340delta">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perl5340delta">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perl5340delta">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perl5340delta">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perl5340delta">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perl5340delta">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perl5340delta">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perl5340delta">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perl5340delta">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perl5340delta">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perl5340delta">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perl5340delta">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perl5340delta">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perl5340delta">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perl5340delta">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perl5340delta">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perl5340delta">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perl5340delta">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perl5340delta">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perl5340delta">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perl5340delta">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perl5340delta">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perl5340delta">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perl5340delta">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perl5340delta">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perl5340delta">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perl5340delta">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perl5340delta">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perl5340delta">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perl5340delta">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perl5340delta">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perl5340delta">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perl5340delta">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perl5340delta">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perl5340delta">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perl5340delta">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perl5340delta">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perl5340delta">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perl5340delta">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perl5340delta">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perl5340delta">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perl5340delta">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perl5340delta">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perl5340delta">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perl5340delta">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perl5340delta">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perl5340delta">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perl5340delta">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perl5340delta">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perl5340delta">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perl5340delta">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perl5340delta">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perl5340delta">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perl5340delta">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perl5340delta">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5340delta.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perl5340delta">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perl5340delta">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perl5340delta">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perl5340delta">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perl5340delta">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perl5340delta">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perl5340delta">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perl5340delta">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perl5340delta">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perl5340delta">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perl5340delta">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perl5340delta">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perl5340delta">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perl5340delta">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perl5340delta">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perl5340delta">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perl5340delta">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perl5340delta">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perl5340delta">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perl5340delta">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perl5340delta">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perl5340delta">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perl5340delta">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perl5340delta">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perl5340delta">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perl5340delta">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perl5340delta">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perl5340delta">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perl5340delta">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perl5340delta">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perl5340delta">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perl5340delta">5.35.1</a>
          <a class="dropdown-item active" href="perl5340delta.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5340delta.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perl5340delta.html">perl5340delta</a>
          <div id="more">
            (<a href="perl5340delta.txt">source</a>,
            <a href="https://metacpan.org/pod/perl5340delta">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#DESCRIPTION">DESCRIPTION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Core-Enhancements">Core Enhancements</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Experimental-Try/Catch-Syntax">Experimental Try/Catch Syntax</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#qr/%7B,n%7D/-is-now-accepted">qr/{,n}/ is now accepted</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Blanks-freely-allowed-within-but-adjacent-to-curly-braces">Blanks freely allowed within but adjacent to curly braces</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#New-octal-syntax-0oddddd">New octal syntax 0oddddd</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Performance-Enhancements">Performance Enhancements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Modules-and-Pragmata">Modules and Pragmata</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#New-Modules-and-Pragmata">New Modules and Pragmata</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Updated-Modules-and-Pragmata">Updated Modules and Pragmata</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Documentation">Documentation</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#New-Documentation">New Documentation</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#perldocstyle">perldocstyle</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#perlgov">perlgov</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Changes-to-Existing-Documentation">Changes to Existing Documentation</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#perlapi">perlapi</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#perlcommunity">perlcommunity</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#perldebguts">perldebguts</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#perldiag">perldiag</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#perlfaq">perlfaq</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#perlfunc">perlfunc</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#perlgit">perlgit</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#perlguts">perlguts</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#perlop">perlop</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#perlpacktut">perlpacktut</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#perlsyn">perlsyn</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#perlunifaq">perlunifaq</a>
              </li>
          </ul>

              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Diagnostics">Diagnostics</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#New-Diagnostics">New Diagnostics</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#New-Errors">New Errors</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#New-Warnings">New Warnings</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Changes-to-Existing-Diagnostics">Changes to Existing Diagnostics</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Utility-Changes">Utility Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#perl5db.pl-(the-debugger)">perl5db.pl (the debugger)</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Configuration-and-Compilation">Configuration and Compilation</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Testing">Testing</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Platform-Support">Platform Support</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#New-Platforms">New Platforms</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Updated-Platforms">Updated Platforms</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Discontinued-Platforms">Discontinued Platforms</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Platform-Specific-Notes">Platform-Specific Notes</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Internal-Changes">Internal Changes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Selected-Bug-Fixes">Selected Bug Fixes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Known-Problems">Known Problems</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Errata-From-Previous-Releases">Errata From Previous Releases</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Obituary">Obituary</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Acknowledgements">Acknowledgements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Reporting-Bugs">Reporting Bugs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#Give-Thanks">Give Thanks</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5340delta.html#SEE-ALSO">SEE ALSO</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perl5340delta.html#NAME">#</a>NAME</h1>

<p>perl5340delta - what is new for perl v5.34.0</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perl5340delta.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>This document describes differences between the 5.32.0 release and the 5.34.0 release.</p>

<p>If you are upgrading from an earlier release such as 5.30.0, first read <a href="perl5320delta.html">perl5320delta</a>, which describes differences between 5.30.0 and 5.32.0.</p>

<h1 id="Core-Enhancements"><a class="permalink" href="perl5340delta.html#Core-Enhancements">#</a><a id="Core"></a>Core Enhancements</h1>

<h2 id="Experimental-Try/Catch-Syntax"><a class="permalink" href="perl5340delta.html#Experimental-Try/Catch-Syntax">#</a><a id="Experimental"></a><a id="Experimental-Try-Catch-Syntax"></a>Experimental Try/Catch Syntax</h2>

<p>An initial experimental attempt at providing <code>try</code>/<code>catch</code> notation has been added.</p>

<pre><code>use feature &#39;try&#39;;

try {
    a_function();
}
catch ($e) {
    warn &quot;An error occurred: $e&quot;;
}</code></pre>

<p>For more information, see <a href="perlsyn.html#Try-Catch-Exception-Handling">&quot;Try Catch Exception Handling&quot; in perlsyn</a>.</p>

<h2 id="qr/{,n}/-is-now-accepted"><a class="permalink" href="perl5340delta.html#qr/%7B,n%7D/-is-now-accepted">#</a><a id="qr"></a><a id="qr-n-is-now-accepted"></a><code>qr/{,n}/</code> is now accepted</h2>

<p>An empty lower bound is now accepted for regular expression quantifiers, like <code>{,3}</code>.</p>

<h2 id="Blanks-freely-allowed-within-but-adjacent-to-curly-braces"><a class="permalink" href="perl5340delta.html#Blanks-freely-allowed-within-but-adjacent-to-curly-braces">#</a><a id="Blanks"></a>Blanks freely allowed within but adjacent to curly braces</h2>

<p>(in double-quotish contexts and regular expression patterns)</p>

<p>This means you can write things like <span style="white-space: nowrap;"><code>\x{ FFFC }</code></span> if you like. This applies to all such constructs, namely <code>\b{}</code>, <code>\g{}</code>, <code>\k{}</code>, <code>\N{}</code>, <code>\o{}</code>, and <code>\x{}</code>; as well as the regular expression quantifier <code>{<i>m</i>,<i>n</i>}</code>. <code>\p{}</code> and <code>\P{}</code> retain their already-existing, even looser, rules mandated by the Unicode standard (see <a href="perluniprops.html#Properties-accessible-through-%5Cp%7B%7D-and-%5CP%7B%7D">&quot;Properties accessible through \p{} and \P{}&quot; in perluniprops</a>).</p>

<p>This ability is in effect regardless of the presence of the <code>/x</code> regular expression pattern modifier.</p>

<p>Additionally, the comma in a regular expression braced quantifier may have blanks (tabs or spaces) before and/or after the comma, like <span style="white-space: nowrap;"><code>qr/a{ 5, 7 }/</code></span>.</p>

<h2 id="New-octal-syntax-0oddddd"><a class="permalink" href="perl5340delta.html#New-octal-syntax-0oddddd">#</a><a id="New"></a>New octal syntax <code>0o<i>ddddd</i></code></h2>

<p>It is now possible to specify octal literals with <code>0o</code> prefixes, as in <code>0o123_456</code>, parallel to the existing construct to specify hexadecimal literal <code>0x<i>ddddd</i></code> and binary literal <code>0b<i>ddddd</i></code>. Also, the builtin <code>oct()</code> function now accepts this new syntax.</p>

<p>See <a href="perldata.html#Scalar-value-constructors">&quot;Scalar value constructors&quot; in perldata</a> and <a href="perlfunc.html#oct-EXPR">&quot;oct EXPR&quot; in perlfunc</a>.</p>

<h1 id="Performance-Enhancements"><a class="permalink" href="perl5340delta.html#Performance-Enhancements">#</a><a id="Performance"></a>Performance Enhancements</h1>

<ul>

<li><p>Fix a memory leak in RegEx [<a href="https://github.com/Perl/perl5/issues/18604">GH #18604</a>]</p>

</li>
</ul>

<h1 id="Modules-and-Pragmata"><a class="permalink" href="perl5340delta.html#Modules-and-Pragmata">#</a><a id="Modules"></a>Modules and Pragmata</h1>

<h2 id="New-Modules-and-Pragmata"><a class="permalink" href="perl5340delta.html#New-Modules-and-Pragmata">#</a><a id="New1"></a>New Modules and Pragmata</h2>

<ul>

<li><p><a href="./ExtUtils::PL2Bat.html">ExtUtils::PL2Bat</a> 0.004 has been added to the Perl core.</p>

<p>This module is a generalization of the <code>pl2bat</code> script. It being a script has led to at least two forks of this code; this module will unify them under one implementation with tests.</p>

</li>
</ul>

<h2 id="Updated-Modules-and-Pragmata"><a class="permalink" href="perl5340delta.html#Updated-Modules-and-Pragmata">#</a><a id="Updated"></a>Updated Modules and Pragmata</h2>

<ul>

<li><p><a href="./Archive::Tar.html">Archive::Tar</a> has been upgraded from version 2.36 to 2.38.</p>

</li>
<li><p><a href="autodie.html">autodie</a> has been upgraded from version 2.32 to 2.34.</p>

</li>
<li><p><a href="B.html">B</a> has been upgraded from version 1.80 to 1.82.</p>

</li>
<li><p><a href="./B::Deparse.html">B::Deparse</a> has been upgraded from version 1.54 to 1.56.</p>

</li>
<li><p><a href="bytes.html">bytes</a> has been upgraded from version 1.07 to 1.08.</p>

</li>
<li><p><a href="Carp.html">Carp</a> has been upgraded from version 1.50 to 1.52.</p>

</li>
<li><p><a href="./Compress::Raw::Bzip2.html">Compress::Raw::Bzip2</a> has been upgraded from version 2.093 to 2.101.</p>

</li>
<li><p><a href="./Compress::Raw::Zlib.html">Compress::Raw::Zlib</a> has been upgraded from version 2.093 to 2.101.</p>

</li>
<li><p><a href="./Config::Perl::V.html">Config::Perl::V</a> has been upgraded from version 0.32 to 0.33.</p>

</li>
<li><p><a href="CPAN.html">CPAN</a> has been upgraded from version 2.27 to 2.28.</p>

</li>
<li><p><a href="./Data::Dumper.html">Data::Dumper</a> has been upgraded from version 2.174 to 2.179.</p>

</li>
<li><p><a href="DB.html">DB</a> has been upgraded from version 1.58 to 1.59.</p>

</li>
<li><p><a href="DB_File.html">DB_File</a> has been upgraded from version 1.853 to 1.855.</p>

</li>
<li><p><a href="./Devel::Peek.html">Devel::Peek</a> has been upgraded from version 1.28 to 1.30.</p>

</li>
<li><p><a href="./Devel::PPPort.html">Devel::PPPort</a> has been upgraded from version 3.57 to 3.62.</p>

<p>New <code>PERL_VERSION_*</code> comparison macros are now available.</p>

<p><code>ppport.h --api-info</code> no longer includes non-API info unless that is the only match</p>

</li>
<li><p><a href="Digest.html">Digest</a> has been upgraded from version 1.17_01 to 1.19.</p>

</li>
<li><p><a href="./Digest::MD5.html">Digest::MD5</a> has been upgraded from version 2.55_01 to 2.58.</p>

</li>
<li><p><a href="DynaLoader.html">DynaLoader</a> has been upgraded from version 1.47 to 1.50.</p>

</li>
<li><p><a href="Encode.html">Encode</a> has been upgraded from version 3.06 to 3.08.</p>

</li>
<li><p><a href="Env.html">Env</a> has been upgraded from version 1.04 to 1.05.</p>

</li>
<li><p><a href="Errno.html">Errno</a> has been upgraded from version 1.30 to 1.33.</p>

</li>
<li><p><a href="experimental.html">experimental</a> has been upgraded from version 0.020 to 0.024.</p>

</li>
<li><p><a href="Exporter.html">Exporter</a> has been upgraded from version 5.74 to 5.76.</p>

</li>
<li><p><a href="./ExtUtils::CBuilder.html">ExtUtils::CBuilder</a> has been upgraded from version 0.280234 to 0.280236.</p>

</li>
<li><p><a href="./ExtUtils::Install.html">ExtUtils::Install</a> has been upgraded from version 2.14 to 2.20.</p>

</li>
<li><p><a href="./ExtUtils::MakeMaker.html">ExtUtils::MakeMaker</a> has been upgraded from version 7.44 to 7.62.</p>

</li>
<li><p><a href="./ExtUtils::Manifest.html">ExtUtils::Manifest</a> has been upgraded from version 1.72 to 1.73.</p>

</li>
<li><p><a href="./ExtUtils::Miniperl.html">ExtUtils::Miniperl</a> has been upgraded from version 1.09 to 1.10.</p>

</li>
<li><p><a href="./ExtUtils::ParseXS.html">ExtUtils::ParseXS</a> has been upgraded from version 3.40 to 3.43.</p>

</li>
<li><p><a href="./ExtUtils::Typemaps.html">ExtUtils::Typemaps</a> has been upgraded from version 3.38 to 3.43.</p>

</li>
<li><p><a href="Fcntl.html">Fcntl</a> has been upgraded from version 1.13 to 1.14.</p>

</li>
<li><p><a href="feature.html">feature</a> has been upgraded from version 1.58 to 1.64.</p>

<p>Added the default enabled <code>bareword_filehandles</code> feature.</p>

<p>A new <a href="feature.html#The-%27multidimensional%27-feature">multidimensional</a> feature has been added, which is enabled by default but allows turning off <a href="perldata.html#Multi-dimensional-array-emulation">multi-dimensional array emulation</a>.</p>

</li>
<li><p><a href="./File::Copy.html">File::Copy</a> has been upgraded from version 2.34 to 2.35.</p>

</li>
<li><p><a href="./File::Fetch.html">File::Fetch</a> has been upgraded from version 0.56 to 1.00.</p>

</li>
<li><p><a href="./File::Find.html">File::Find</a> has been upgraded from version 1.37 to 1.39.</p>

</li>
<li><p><a href="./File::Path.html">File::Path</a> has been upgraded from version 2.16 to 2.18.</p>

</li>
<li><p><a href="./File::Spec.html">File::Spec</a> has been upgraded from version 3.78 to 3.80.</p>

</li>
<li><p><a href="./File::Temp.html">File::Temp</a> has been upgraded from version 0.2309 to 0.2311.</p>

</li>
<li><p><a href="./Filter::Util::Call.html">Filter::Util::Call</a> has been upgraded from version 1.59 to 1.60.</p>

</li>
<li><p><a href="FindBin.html">FindBin</a> has been upgraded from version 1.51 to 1.52.</p>

</li>
<li><p><a href="GDBM_File.html">GDBM_File</a> has been upgraded from version 1.18 to 1.19.</p>

<p>New functions and compatibility for newer versions of GDBM. [<a href="https://github.com/Perl/perl5/pull/18435">GH #18435</a>]</p>

</li>
<li><p><a href="./Getopt::Long.html">Getopt::Long</a> has been upgraded from version 2.51 to 2.52.</p>

</li>
<li><p><a href="./Getopt::Std.html">Getopt::Std</a> has been upgraded from version 1.12 to 1.13.</p>

</li>
<li><p><a href="./Hash::Util.html">Hash::Util</a> has been upgraded from version 0.23 to 0.25.</p>

</li>
<li><p><a href="./Hash::Util::FieldHash.html">Hash::Util::FieldHash</a> has been upgraded from version 1.20 to 1.21.</p>

</li>
<li><p><a href="./I18N::LangTags.html">I18N::LangTags</a> has been upgraded from version 0.44 to 0.45.</p>

</li>
<li><p><a href="if.html">if</a> has been upgraded from version 0.0608 to 0.0609.</p>

</li>
<li><p><a href="IO.html">IO</a> has been upgraded from version 1.43 to 1.46.</p>

<p>IO::Socket now stores error messages in <code>$IO::Socket::errstr</code>, in addition to in <code>$@</code>.</p>

<p>The <code>error</code> method now reports the error state for both the input and output streams for sockets and character devices. Similarly <code>clearerr</code> now clears the error state for both streams.</p>

<p>A spurious error reported for regular file handles has been fixed in <a href="./IO::Handle.html">IO::Handle</a>. [<a href="https://github.com/Perl/perl5/issues/18019">GH #18019</a>]</p>

</li>
<li><p>IO-Compress has been upgraded from version 2.093 to 2.102.</p>

<p>bin/zipdetails version 2.02</p>

</li>
<li><p><a href="./IO::Socket::IP.html">IO::Socket::IP</a> has been upgraded from version 0.39 to 0.41.</p>

</li>
<li><p><a href="./IO::Zlib.html">IO::Zlib</a> has been upgraded from version 1.10 to 1.11.</p>

</li>
<li><p><a href="./IPC::SysV.html">IPC::SysV</a> has been upgraded from version 2.07 to 2.09.</p>

</li>
<li><p><a href="./JSON::PP.html">JSON::PP</a> has been upgraded from version 4.04 to 4.06.</p>

</li>
<li><p>The libnet distribution has been upgraded from version 3.11 to 3.13.</p>

</li>
<li><p><a href="locale.html">locale</a> has been upgraded from version 1.09 to 1.10.</p>

</li>
<li><p><a href="./Math::Complex.html">Math::Complex</a> has been upgraded from version 1.5901 to 1.5902.</p>

</li>
<li><p><a href="./MIME::Base64.html">MIME::Base64</a> has been upgraded from version 3.15 to 3.16.</p>

</li>
<li><p><a href="./Module::CoreList.html">Module::CoreList</a> has been upgraded from version 5.20200620 to 5.20210520.</p>

</li>
<li><p><a href="./Module::Load.html">Module::Load</a> has been upgraded from version 0.34 to 0.36.</p>

</li>
<li><p><a href="./Module::Load::Conditional.html">Module::Load::Conditional</a> has been upgraded from version 0.70 to 0.74.</p>

</li>
<li><p><a href="mro.html">mro</a> has been upgraded from version 1.23 to 1.25_001.</p>

</li>
<li><p><a href="./Net::Ping.html">Net::Ping</a> has been upgraded from version 2.72 to 2.74.</p>

</li>
<li><p><a href="NEXT.html">NEXT</a> has been upgraded from version 0.67_01 to 0.68.</p>

</li>
<li><p><a href="ODBM_File.html">ODBM_File</a> has been upgraded from version 1.16 to 1.17.</p>

</li>
<li><p><a href="Opcode.html">Opcode</a> has been upgraded from version 1.47 to 1.50.</p>

</li>
<li><p><a href="overload.html">overload</a> has been upgraded from version 1.31 to 1.33.</p>

</li>
<li><p><a href="perlfaq.html">perlfaq</a> has been upgraded from version 5.20200523 to 5.20210411.</p>

</li>
<li><p><a href="./PerlIO::encoding.html">PerlIO::encoding</a> has been upgraded from version 0.28 to 0.30.</p>

</li>
<li><p><a href="./PerlIO::mmap.html">PerlIO::mmap</a> has been upgraded from version 0.016 to 0.017.</p>

</li>
<li><p><a href="./PerlIO::scalar.html">PerlIO::scalar</a> has been upgraded from version 0.30 to 0.31.</p>

</li>
<li><p><a href="./PerlIO::via::QuotedPrint.html">PerlIO::via::QuotedPrint</a> has been upgraded from version 0.08 to 0.09.</p>

</li>
<li><p><a href="./Pod::Checker.html">Pod::Checker</a> has been upgraded from version 1.73 to 1.74.</p>

</li>
<li><p><a href="./Pod::Html.html">Pod::Html</a> has been upgraded from version 1.25 to 1.27.</p>

</li>
<li><p><a href="./Pod::Simple.html">Pod::Simple</a> has been upgraded from version 3.40 to 3.42.</p>

</li>
<li><p><a href="./Pod::Usage.html">Pod::Usage</a> has been upgraded from version 1.69 to 2.01.</p>

</li>
<li><p><a href="POSIX.html">POSIX</a> has been upgraded from version 1.94 to 1.97.</p>

<p>POSIX::signbit() behaviour has been improved. [<a href="https://github.com/Perl/perl5/pull/18441">GH #18441</a>]</p>

<p>Documentation for <code>asctime</code> clarifies that the result is always in English. (Use <code>strftime</code> for a localized result.)</p>

</li>
<li><p><a href="re.html">re</a> has been upgraded from version 0.40 to 0.41.</p>

<p>(See under <a href="perl5340delta.html#Internal-Changes">&quot;Internal Changes&quot;</a> for more information.)</p>

</li>
<li><p><a href="Safe.html">Safe</a> has been upgraded from version 2.41 to 2.43.</p>

</li>
<li><p><a href="Socket.html">Socket</a> has been upgraded from version 2.029 to 2.031.</p>

</li>
<li><p><a href="Storable.html">Storable</a> has been upgraded from version 3.21 to 3.23.</p>

</li>
<li><p><a href="strict.html">strict</a> has been upgraded from version 1.11 to 1.12.</p>

</li>
<li><p><a href="subs.html">subs</a> has been upgraded from version 1.03 to 1.04.</p>

</li>
<li><p><a href="Symbol.html">Symbol</a> has been upgraded from version 1.08 to 1.09.</p>

</li>
<li><p><a href="./Test::Harness.html">Test::Harness</a> has been upgraded from version 3.42 to 3.43.</p>

</li>
<li><p><a href="./Test::Simple.html">Test::Simple</a> has been upgraded from version 1.302175 to 1.302183.</p>

</li>
<li><p><a href="./Text::Balanced.html">Text::Balanced</a> has been upgraded from version 2.03 to 2.04.</p>

</li>
<li><p><a href="threads.html">threads</a> has been upgraded from version 2.25 to 2.26.</p>

</li>
<li><p><a href="./threads::shared.html">threads::shared</a> has been upgraded from version 1.61 to 1.62.</p>

</li>
<li><p><a href="./Tie::RefHash.html">Tie::RefHash</a> has been upgraded from version 1.39 to 1.40.</p>

</li>
<li><p><a href="./Time::HiRes.html">Time::HiRes</a> has been upgraded from version 1.9764 to 1.9767.</p>

</li>
<li><p><a href="./Time::Local.html">Time::Local</a> has been upgraded from version 1.28 to 1.30.</p>

</li>
<li><p><a href="./Unicode::Collate.html">Unicode::Collate</a> has been upgraded from version 1.27 to 1.29.</p>

</li>
<li><p><a href="./Unicode::Normalize.html">Unicode::Normalize</a> has been upgraded from version 1.27 to 1.28.</p>

</li>
<li><p><a href="utf8.html">utf8</a> has been upgraded from version 1.22 to 1.24.</p>

</li>
<li><p><a href="version.html">version</a> has been upgraded from version 0.9924 to 0.9928.</p>

</li>
<li><p><a href="warnings.html">warnings</a> has been upgraded from version 1.47 to 1.51.</p>

</li>
<li><p><a href="Win32.html">Win32</a> has been upgraded from version 0.53 to 0.57.</p>

<p>Fix calling convention for <code>PFNRegGetValueA</code>.</p>

<p>Added <code>Win32::IsSymlinkCreationAllowed()</code>, <code>Win32::IsDeveloperModeEnabled()</code>, and <code>Win32::GetProcessPrivileges()</code>.</p>

<p>Removed old code for versions before Windows 2000.</p>

</li>
<li><p><a href="./XS::APItest.html">XS::APItest</a> has been upgraded from version 1.09 to 1.16.</p>

</li>
<li><p><a href="./XS::Typemap.html">XS::Typemap</a> has been upgraded from version 0.17 to 0.18.</p>

</li>
</ul>

<h1 id="Documentation"><a class="permalink" href="perl5340delta.html#Documentation">#</a>Documentation</h1>

<h2 id="New-Documentation"><a class="permalink" href="perl5340delta.html#New-Documentation">#</a><a id="New2"></a>New Documentation</h2>

<h3 id="perldocstyle"><a class="permalink" href="perl5340delta.html#perldocstyle">#</a><a href="perldocstyle.html">perldocstyle</a></h3>

<p>This document is a guide for the authorship and maintenance of the documentation that ships with Perl.</p>

<h3 id="perlgov"><a class="permalink" href="perl5340delta.html#perlgov">#</a><a href="perlgov.html">perlgov</a></h3>

<p>This document describes the goals, scope, system, and rules for Perl&#39;s new governance model.</p>

<p>Other pod files, most notably <a href="perlpolicy.html">perlpolicy</a>, were amended to reflect its adoption.</p>

<h2 id="Changes-to-Existing-Documentation"><a class="permalink" href="perl5340delta.html#Changes-to-Existing-Documentation">#</a><a id="Changes"></a>Changes to Existing Documentation</h2>

<p>We have attempted to update the documentation to reflect the changes listed in this document. If you find any we have missed, open an issue at <a href="https://github.com/Perl/perl5/issues">https://github.com/Perl/perl5/issues</a>.</p>

<p>Additionally, the following selected changes have been made:</p>

<ul>

<li><p><a href="perlapi.html">perlapi</a>, <a href="perlguts.html">perlguts</a>, <a href="perlxs.html">perlxs</a>, and <a href="perlxstut.html">perlxstut</a> now prefer <code>SvPVbyte</code> over <code>SvPV</code>.</p>

</li>
<li><p>References to <b>Pumpking</b> have been replaced with a more accurate term or <b>Steering Council</b> where appropriate.</p>

</li>
<li><p><b>The Perl Steering Council</b> is now the fallback contact for security issues.</p>

</li>
</ul>

<h3 id="perlapi"><a class="permalink" href="perl5340delta.html#perlapi">#</a><a href="perlapi.html">perlapi</a></h3>

<ul>

<li><p>Efforts continue in improving the presentation of this document, and to document more API elements.</p>

</li>
</ul>

<h3 id="perlcommunity"><a class="permalink" href="perl5340delta.html#perlcommunity">#</a><a href="perlcommunity.html">perlcommunity</a></h3>

<ul>

<li><p>The freenode IRC URL has been updated.</p>

</li>
</ul>

<h3 id="perldebguts"><a class="permalink" href="perl5340delta.html#perldebguts">#</a><a href="perldebguts.html">perldebguts</a></h3>

<ul>

<li><p>Corrected the description of the scalar <code>${&quot;_&lt;$filename&quot;}</code> variables.</p>

</li>
</ul>

<h3 id="perldiag"><a class="permalink" href="perl5340delta.html#perldiag">#</a><a href="perldiag.html">perldiag</a></h3>

<ul>

<li><p>Now documents additional examples of &quot;not imported&quot; warnings.</p>

</li>
</ul>

<h3 id="perlfaq"><a class="permalink" href="perl5340delta.html#perlfaq">#</a><a href="perlfaq.html">perlfaq</a></h3>

<ul>

<li><p>The Perl FAQ was updated to CPAN version 5.20201107 with minor improvements.</p>

</li>
</ul>

<h3 id="perlfunc"><a class="permalink" href="perl5340delta.html#perlfunc">#</a><a href="perlfunc.html">perlfunc</a></h3>

<ul>

<li><p><a href="perlfunc.html#my">my()</a> and <a href="perlfunc.html#state">state()</a> now explicitly warn the reader that lexical variables should typically not be redeclared within the same scope or statement. [<a href="https://github.com/Perl/perl5/issues/18389">GH #18389</a>]</p>

</li>
<li><p>The <a href="perlfunc.html#localtime">localtime</a> entry has been improved and now also states that the result of the function is always in English.</p>

</li>
<li><p><a href="perlfunc.html#msgsnd">msgsnd()</a> documented a length field included in the packed <code>MSG</code> parameter to <code>msgsnd()</code>, but there was no such field. <code>MSG</code> contains only the type and the message content.</p>

</li>
<li><p>Better explanation of what happens when <code>sleep</code> is called with a zero or negative value.</p>

</li>
<li><p>Simplify the <code>split()</code> documentation by removing the <code>join()</code>s from the examples [<a href="https://github.com/Perl/perl5/issues/18676">GH #18676</a>]</p>

</li>
</ul>

<h3 id="perlgit"><a class="permalink" href="perl5340delta.html#perlgit">#</a><a href="perlgit.html">perlgit</a></h3>

<ul>

<li><p>document how to create a remote-tracking branch for every PR</p>

</li>
<li><p>document how to get a PR as a local branch</p>

</li>
</ul>

<h3 id="perlguts"><a class="permalink" href="perl5340delta.html#perlguts">#</a><a href="perlguts.html">perlguts</a></h3>

<ul>

<li><p><a href="perlguts.html">perlguts</a> now explains in greater detail the need to consult <code>SvUTF8</code> when calling <code>SvPV</code> (or variants). A new &quot;How do I pass a Perl string to a C library?&quot; section in the same document discusses when to use which style of macro to read an SV&#39;s string value.</p>

</li>
<li><p>Corrected <code>my_rpeep</code> example in perlguts.</p>

</li>
<li><p>A section has been added on the formatted printing of special sizes.</p>

</li>
</ul>

<h3 id="perlop"><a class="permalink" href="perl5340delta.html#perlop">#</a><a href="perlop.html">perlop</a></h3>

<ul>

<li><p>The <code>&lt;&gt;</code> and <code>&lt;&lt;&gt;&gt;</code> operators are commonly referred to as the diamond and double diamond operators respectively, but that wasn&#39;t mentioned previously in their documentation.</p>

</li>
<li><p>Document range op behavior change.</p>

</li>
</ul>

<h3 id="perlpacktut"><a class="permalink" href="perl5340delta.html#perlpacktut">#</a><a href="perlpacktut.html">perlpacktut</a></h3>

<ul>

<li><p>Incorrect variables used in an example have been fixed.</p>

</li>
</ul>

<h3 id="perlsyn"><a class="permalink" href="perl5340delta.html#perlsyn">#</a><a href="perlsyn.html">perlsyn</a></h3>

<ul>

<li><p>Document that caller() does not see try{} blocks</p>

</li>
<li><p>A new example shows how a lexical <code>my</code> variable can be declared during the initialization of a <code>for</code> loop.</p>

</li>
</ul>

<h3 id="perlunifaq"><a class="permalink" href="perl5340delta.html#perlunifaq">#</a><a href="perlunifaq.html">perlunifaq</a></h3>

<ul>

<li><p>Fix description of what Perl does with unencoded strings</p>

</li>
</ul>

<h1 id="Diagnostics"><a class="permalink" href="perl5340delta.html#Diagnostics">#</a>Diagnostics</h1>

<p>The following additions or changes have been made to diagnostic output, including warnings and fatal error messages. For the complete list of diagnostic messages, see <a href="perldiag.html">perldiag</a>.</p>

<h2 id="New-Diagnostics"><a class="permalink" href="perl5340delta.html#New-Diagnostics">#</a><a id="New3"></a>New Diagnostics</h2>

<h3 id="New-Errors"><a class="permalink" href="perl5340delta.html#New-Errors">#</a><a id="New4"></a>New Errors</h3>

<ul>

<li><p><a href="perldiag.html#Bareword-filehandle-%22%25s%22-not-allowed-under-%27no-feature-%22bareword_filehandles%22%27">Bareword filehandle &quot;%s&quot; not allowed under &#39;no feature &quot;bareword_filehandles&quot;&#39;</a></p>

<p>This accompanies the new <a href="feature.html#The-%27bareword_filehandles%27-feature.">bareword_filehandles</a> feature.</p>

</li>
<li><p><a href="perldiag.html#Multidimensional-hash-lookup-is-disabled">Multidimensional hash lookup is disabled</a></p>

<p>This accompanies the new <a href="feature.html#The-%27multidimensional%27-feature">multidimensional</a> feature.</p>

</li>
</ul>

<h3 id="New-Warnings"><a class="permalink" href="perl5340delta.html#New-Warnings">#</a><a id="New5"></a>New Warnings</h3>

<ul>

<li><p><a href="perldiag.html#Wide-character-in-%25s">Wide character in setenv key (encoding to utf8)</a></p>

<p>Attempts to put wide characters into environment variable keys via <code>%ENV</code> now provoke this warning.</p>

</li>
</ul>

<h2 id="Changes-to-Existing-Diagnostics"><a class="permalink" href="perl5340delta.html#Changes-to-Existing-Diagnostics">#</a><a id="Changes1"></a>Changes to Existing Diagnostics</h2>

<ul>

<li><p><a href="perldiag.html#Error-%25s-in-expansion-of-%25s">Error %s in expansion of %s</a></p>

<p>An error was encountered in handling a user-defined property (<a href="perlunicode.html#User-Defined-Character-Properties">&quot;User-Defined Character Properties&quot; in perlunicode</a>). These are programmer written subroutines, hence subject to errors that may prevent them from compiling or running.</p>

</li>
<li><p><a href="perldiag.html#Infinite-recursion-in-user-defined-property">Infinite recursion in user-defined property</a></p>

<p>A user-defined property (<a href="perlunicode.html#User-Defined-Character-Properties">&quot;User-Defined Character Properties&quot; in perlunicode</a>) can depend on the definitions of other user-defined properties. If the chain of dependencies leads back to this property, infinite recursion would occur, were it not for the check that raised this error.</p>

</li>
<li><p><a href="perldiag.html#Timeout-waiting-for-another-thread-to-define-%5Cp%7B%25s%7D">Timeout waiting for another thread to define \p{%s}</a></p>

<p>The first time a user-defined property (<a href="perlunicode.html#User-Defined-Character-Properties">&quot;User-Defined Character Properties&quot; in perlunicode</a>) is used, its definition is looked up and converted into an internal form for more efficient handling in subsequent uses. There could be a race if two or more threads tried to do this processing nearly simultaneously.</p>

</li>
<li><p><a href="perldiag.html#Unknown-user-defined-property-name-%5Cp%7B%25s%7D">Unknown user-defined property name \p{%s}</a></p>

<p>You specified to use a property within the <code>\p{...}</code> which was a syntactically valid user-defined property, but no definition was found for it</p>

</li>
<li><p><a href="perldiag.html#Too-few-arguments-for-subroutine-%27%25s%27-%28got-%25d%3B-expected-%25d%29">Too few arguments for subroutine &#39;%s&#39; (got %d; expected %d)</a></p>

<p>Subroutine argument-count mismatch errors now include the number of given and expected arguments.</p>

</li>
<li><p><a href="perldiag.html#Too-many-arguments-for-subroutine-%27%25s%27-%28got-%25d%3B-expected-%25d%29">Too many arguments for subroutine &#39;%s&#39; (got %d; expected %d)</a></p>

<p>Subroutine argument-count mismatch errors now include the number of given and expected arguments.</p>

</li>
<li><p><a href="perldiag.html#Lost-precision-when-%25s-%25f-by-1">Lost precision when %s %f by 1</a></p>

<p>This warning was only issued for positive too-large values when incrementing, and only for negative ones when decrementing. It is now issued for both positive or negative too-large values. [<a href="https://github.com/Perl/perl5/issues/18333">GH #18333</a>]</p>

</li>
<li><p><a href="perldiag.html#%5CK-not-permitted-in-lookahead%2Flookbehind-in-regex%3B-marked-by-%3C-HERE-in-m%2F%25s%2F">\K not permitted in lookahead/lookbehind in regex; marked by &lt;-- HERE in m/%s/</a></p>

<p>This error was incorrectly produced in some cases involving nested lookarounds. This has been fixed. [<a href="https://github.com/Perl/perl5/issues/18123">GH #18123</a>]</p>

</li>
<li><p><a href="perldiag.html#Use-of-uninitialized-value%25s">Use of uninitialized value%s</a></p>

<p>This warning may now include the array or hash index when the uninitialized value is the result of an element not found. This will only happen if the index is a simple non-magical variable.</p>

</li>
</ul>

<h1 id="Utility-Changes"><a class="permalink" href="perl5340delta.html#Utility-Changes">#</a><a id="Utility"></a>Utility Changes</h1>

<h2 id="perl5db.pl-(the-debugger)"><a class="permalink" href="perl5340delta.html#perl5db.pl-(the-debugger)">#</a><a id="perl5db"></a><a id="perl5db.pl-the-debugger"></a><a href="perl5db.pl">perl5db.pl</a> (the debugger)</h2>

<ul>

<li><p>New option: <code>HistItemMinLength</code></p>

<p>This option controls the minimum length a command must be to get stored in history. Traditionally, this has been fixed at 2. Changes to the debugger are often perilous, and new bugs should be reported so the debugger can be debugged.</p>

</li>
<li><p>Fix to <code>i</code> and <code>l</code> commands</p>

<p>The <code>i $var</code> and <code>l $var</code> commands work again with lexical variables.</p>

</li>
</ul>

<h1 id="Configuration-and-Compilation"><a class="permalink" href="perl5340delta.html#Configuration-and-Compilation">#</a><a id="Configuration"></a>Configuration and Compilation</h1>

<ul>

<li><p>Prevented incpath to spill into libpth</p>

</li>
<li><p>Use realpath if available. (This might catch more duplicate paths.)</p>

</li>
<li><p>Only include real existing paths.</p>

</li>
<li><p>Filter inc paths out of libpth.</p>

</li>
<li><p>stadtx hash support has been removed</p>

<p>stadtx support has been entirely removed. Previously, it could be requested with <code>PERL_HASH_FUNC_STADTX</code>, and was default in 64-bit builds. It has been replaced with SipHash. SipHash has been more rigorously reviewed than stadtx.</p>

</li>
<li><p>Configure</p>

<p>A new probe checks for buggy libc implementations of the <code>gcvt</code>/<code>qgcvt</code> functions. [<a href="https://github.com/Perl/perl5/issues/18170">GH #18170</a>]</p>

</li>
<li><p><code>-Dusedefaultstrict</code></p>

<p>Perl can now be built with <a href="strict.html">strict</a> on by default (using the configuration option <code>-Dusedefaultstrict</code>.</p>

<p>These strict defaults do not apply when <code>perl</code> is run via <code>-e</code> or <code>-E</code>.</p>

<p>This setting provides a diagnostic mechanism intended for development purposes only and is thus undefined by default.</p>

</li>
<li><p>The minimum supported Bison version is now 2.4, and the maximum is 3.7.</p>

</li>
<li><p>Newer 64-bit versions of the Intel C/C++ compiler are now recognised and have the correct flags set.</p>

</li>
<li><p>We now trap SIGBUS when <i>Configure</i> checks for <code>va_copy</code>.</p>

<p>On several systems the attempt to determine if we need <code>va_copy</code> or similar results in a SIGBUS instead of the expected SIGSEGV, which previously caused a core dump.</p>

<p>[<a href="https://github.com/Perl/perl5/issues/18148">GH #18148</a>]</p>

</li>
</ul>

<h1 id="Testing"><a class="permalink" href="perl5340delta.html#Testing">#</a>Testing</h1>

<p>Tests were added and changed to reflect the other additions and changes in this release. Furthermore, these significant changes were made:</p>

<ul>

<li><p>Split Config-dependent tests in <i>t/opbasic/arith.t</i> to <i>t/op/arith2.t</i></p>

</li>
<li><p><i>t/re/opt.t</i> was added, providing a test harness for regexp optimization. [<a href="https://github.com/Perl/perl5/pull/18213">GH #18213</a>]</p>

</li>
<li><p>A workaround for CPAN distributions needing dot in <code>@INC</code> has been removed [<a href="https://github.com/Perl/perl5/pull/18394">GH #18394</a>]. All distributions that previously required the workaround have now been adapted.</p>

</li>
<li><p>When testing in parallel on many-core platforms, you can now cause the test suite to finish somewhat earlier, but with less logical ordering of the tests, by setting</p>

<pre><code class="plaintext">PERL_TEST_HARNESS_ASAP=1</code></pre>

<p>while running the test suite.</p>

</li>
</ul>

<h1 id="Platform-Support"><a class="permalink" href="perl5340delta.html#Platform-Support">#</a><a id="Platform"></a>Platform Support</h1>

<h2 id="New-Platforms"><a class="permalink" href="perl5340delta.html#New-Platforms">#</a><a id="New6"></a>New Platforms</h2>

<dl>

<dt id="9front"><a class="permalink" href="perl5340delta.html#9front">#</a><a id="front"></a>9front</dt>
<dd>

<p>Allow building Perl on i386 9front systems (a fork of plan9).</p>

</dd>
</dl>

<h2 id="Updated-Platforms"><a class="permalink" href="perl5340delta.html#Updated-Platforms">#</a><a id="Updated1"></a>Updated Platforms</h2>

<dl>

<dt id="Plan9"><a class="permalink" href="perl5340delta.html#Plan9">#</a>Plan9</dt>
<dd>

<p>Improve support for Plan9 on i386 platforms.</p>

</dd>
<dt id="MacOS-(Darwin)"><a class="permalink" href="perl5340delta.html#MacOS-(Darwin)">#</a><a id="MacOS"></a><a id="MacOS-Darwin"></a>MacOS (Darwin)</dt>
<dd>

<p>The hints file for darwin has been updated to handle future MacOS versions beyond 10. [<a href="https://github.com/Perl/perl5/issues/17946">GH #17946</a>]</p>

</dd>
</dl>

<h2 id="Discontinued-Platforms"><a class="permalink" href="perl5340delta.html#Discontinued-Platforms">#</a><a id="Discontinued"></a>Discontinued Platforms</h2>

<dl>

<dt id="Symbian"><a class="permalink" href="perl5340delta.html#Symbian">#</a>Symbian</dt>
<dd>

<p>Support code relating to Symbian has been removed. Symbian was an operating system for mobile devices. The port was last updated in July 2009, and the platform itself in October 2012.</p>

</dd>
</dl>

<h2 id="Platform-Specific-Notes"><a class="permalink" href="perl5340delta.html#Platform-Specific-Notes">#</a><a id="Platform1"></a>Platform-Specific Notes</h2>

<dl>

<dt id="DragonFlyBSD"><a class="permalink" href="perl5340delta.html#DragonFlyBSD">#</a>DragonFlyBSD</dt>
<dd>

<p>Tests were updated to workaround DragonFlyBSD bugs in <a href="https://bugs.dragonflybsd.org/issues/3252">tc*() functions</a> and <a href="https://bugs.dragonflybsd.org/issues/3251">ctime updates</a>.</p>

</dd>
<dt id="Mac-OS-X"><a class="permalink" href="perl5340delta.html#Mac-OS-X">#</a><a id="Mac"></a>Mac OS X</dt>
<dd>

<p>A number of system libraries no longer exist as actual files on Big Sur, even though <code>dlopen</code> will pretend they do, so now we fall back to <code>dlopen</code> if a library file can not be found. [<a href="https://github.com/Perl/perl5/issues/18407">GH #18407</a>]</p>

</dd>
<dt id="Windows"><a class="permalink" href="perl5340delta.html#Windows">#</a>Windows</dt>
<dd>

<p>Reading non-ASCII characters from the console when its codepage was set to 65001 (UTF-8) was broken due to a bug in Windows. A workaround for this problem has been implemented. [<a href="https://github.com/Perl/perl5/issues/18701">GH #18701</a>]</p>

<p>Building with mingw.org compilers (version 3.4.5 or later) using mingw runtime versions &lt; 3.22 now works again. This was broken in Perl 5.31.4.</p>

<p>Building with mingw.org compilers (version 3.4.5 or later) using mingw runtime versions &gt;= 3.21 now works (for compilers up to version 5.3.0).</p>

<p><i>Makefile.mk</i>, and thus support for dmake, has been removed. It is still possible to build Perl on Windows using nmake (Makefile) and GNU make (GNUmakefile). [<a href="https://github.com/Perl/perl5/pull/18511">GH #18511</a>]</p>

<p>perl can now be built with <code>USE_QUADMATH</code> on MS Windows using (32-bit and 64-bit) mingw-w64 ports of gcc. [<a href="https://github.com/Perl/perl5/pull/18465">GH #18465</a>]</p>

<p>The <i>pl2bat.pl</i> utility now needs to <code>use ExtUtils::PL2Bat</code>. This could cause failures in parallel builds.</p>

<p>Windows now supports <a href="perlfunc.html#symlink">symlink()</a> and <a href="perlfunc.html#readlink">readlink()</a>, and <a href="perlfunc.html#lstat">lstat()</a> is no longer an alias for <a href="perlfunc.html#stat">stat()</a>. [<a href="https://github.com/Perl/perl5/issues/18005">GH #18005</a>].</p>

<p>Unlike POSIX systems, creating a symbolic link on Windows requires either elevated privileges or Windows 10 1703 or later with Developer Mode enabled.</p>

<p>stat(), including <code>stat FILEHANDLE</code>, and lstat() now uses our own implementation that populates the device <code>dev</code> and inode numbers <code>ino</code> returned rather than always returning zero. The number of links <code>nlink</code> field is now always populated.</p>

<p><a href="perlvar.html#%24%7B%5EWIN32_SLOPPY_STAT%7D"><code>${^WIN32_SLOPPY_STAT}</code> </a> previously controlled whether the <code>nlink</code> field was populated requiring a separate Windows API call to fetch, since <code>nlink</code> and the other information required for <code>stat()</code> is now retrieved in a single API call.</p>

<p>The <code>-r</code> and <code>-w</code> operators now return true for the <code>STDIN</code>, <code>STDOUT</code> and <code>STDERR</code> handles. Unfortunately it still won&#39;t return true for duplicates of those handles. [<a href="https://github.com/Perl/perl5/issues/8502">GH #8502</a>].</p>

<p>The times returned by stat() and lstat() are no longer incorrect across Daylight Savings Time adjustments. [<a href="https://github.com/Perl/perl5/issues/6080">GH #6080</a>].</p>

<p><code>-x</code> on a filehandle should now match <code>-x</code> on the corresponding filename on Vista or later. [<a href="https://github.com/Perl/perl5/issues/4145">GH #4145</a>].</p>

<p><code>-e &#39;&quot;&#39;</code> no longer incorrectly returns true. [<a href="https://github.com/Perl/perl5/issues/12431">GH #12431</a>].</p>

<p>The same manifest is now used for Visual C++ and gcc builds.</p>

<p>Previously, MSVC builds were using the <b>/manifestdependency</b> flag instead of embedding <i>perlexe.manifest</i>, which caused issues such as <code>GetVersionEx()</code> returning the wrong version number on Windows 10.</p>

</dd>
<dt id="z/OS"><a class="permalink" href="perl5340delta.html#z/OS">#</a><a id="z"></a><a id="z-OS"></a>z/OS</dt>
<dd>

<p>The locale categories <code>LC_SYNTAX</code> and <code>LC_TOD</code> are now recognized. Perl doesn&#39;t do anything with these, except it now allows you to specify them. They are included in <code>LC_ALL</code>.</p>

</dd>
</dl>

<h1 id="Internal-Changes"><a class="permalink" href="perl5340delta.html#Internal-Changes">#</a><a id="Internal"></a>Internal Changes</h1>

<ul>

<li><p>Corrected handling of double and long double parameters for perl&#39;s implementation of formatted output for <code>-Dusequadmath</code> builds.</p>

<p>This applies to <code>PerlIO_printf()</code>, <code>croak()</code>, <code>warn()</code>, <code>sv_catpvf()</code> and their variants.</p>

<p>Previously in <code>quadmath</code> builds, code like:</p>

<pre><code>PerlIO_printf(PerlIO_stderr(), &quot;%g&quot;, somedouble);</code></pre>

<p>or</p>

<pre><code>PerlIO_printf(PerlIO_stderr(), &quot;%Lg&quot;, somelongdouble);</code></pre>

<p>would erroneously throw an exception &quot;panic: quadmath invalid format ...&quot;, since the code added for quadmath builds assumed <code>NV</code>s were the only floating point format passed into these functions.</p>

<p>This code would also process the standard C long double specifier <code>L</code> as if it expected an <code>NV</code> (<code>__float128</code> for quadmath builds), resulting in undefined behaviour.</p>

<p>These functions now correctly accept doubles, long doubles and NVs.</p>

</li>
<li><p>Previously the right operand of bitwise shift operators (shift amount) was implicitly cast from IV to int, but it might lead wrong results if IV does not fit in int.</p>

<p>And also, shifting INT_MIN bits used to yield the shiftee unchanged (treated as 0-bit shift instead of negative shift).</p>

</li>
<li><p>A set of <code>cop_hints_exists_{pv,pvn,pvs,sv}</code> functions was added, to support checking for the existence of keys in the hints hash of a specific cop without needing to create a mortal copy of said value.</p>

</li>
<li><p>An aid has been added for using the <code>DEBUG</code> macros when debugging XS or C code. The comments in <i>perl.h</i> describe <code>DEBUG_PRE_STMTS</code> and <code>DEBUG_POST_STMTS</code>. which you can <code>#define</code> to do things like save and restore <code>errno</code>, in case the <code>DEBUG</code> calls are interfering with that, or to display timestamps, or which thread it&#39;s coming from, or the location of the call, or whatever. You can make a quick hack to help you track something down without having to edit individual <code>DEBUG</code> calls.</p>

</li>
<li><p>Make <code>REFCOUNTED_HE_EXISTS</code> available outside of core</p>

</li>
<li><p>All <code>SvTRUE</code>-ish functions now evaluate their arguments exactly once. In 5.32, plain <a href="perlapi.html#SvTRUE">&quot;<code>SvTRUE</code>&quot; in perlapi</a> was changed to do that; now the rest do as well.</p>

</li>
<li><p>Unicode is now a first class citizen when considering the pattern /A*B/ where A and B are arbitrary. The pattern matching code tries to make a tight loop to match the span of A&#39;s. The logic of this was now really updated with support for UTF-8.</p>

</li>
<li><p>The <a href="re.html">re</a> module has a new function <code>optimization</code>, which can return a hashref of optimization data discovered about a compiled regexp.</p>

</li>
<li><p>The <code>PERL_GLOBAL_STRUCT</code> compilation option has been removed, and with it the need or the <code>dVAR</code> macro. <code>dVAR</code> remains defined as a no-op outside <code>PERL_CORE</code> for backwards compatiblity with XS modules.</p>

</li>
<li><p>A new savestack type <code>SAVEt_HINTS_HH</code> has been added, which neatens the previous behaviour of <code>SAVEt_HINTS</code>. On previous versions the types and values pushed to the save stack would depend on whether the hints included the <code>HINT_LOCALIZE_HH</code> bit, which complicates external code that inspects the save stack. The new version uses a different savestack type to indicate the difference.</p>

</li>
<li><p>A new API function <a href="perlapi.html#av_count">&quot;av_count&quot; in perlapi</a> has been added which gives a clearly named way to find how many elements are in an array.</p>

</li>
</ul>

<h1 id="Selected-Bug-Fixes"><a class="permalink" href="perl5340delta.html#Selected-Bug-Fixes">#</a><a id="Selected"></a>Selected Bug Fixes</h1>

<ul>

<li><p>Setting <code>%ENV</code> now properly handles upgraded strings in the key. Previously Perl sent the SV&#39;s internal PV directly to the OS; now it will handle keys as it has handled values since 5.18: attempt to downgrade the string first; if that fails then warn and use the utf8 form.</p>

</li>
<li><p>Fix a memory leak in regcomp.c [<a href="https://github.com/Perl/perl5/issues/18604">GH #18604</a>]</p>

</li>
<li><p>pack/unpack format &#39;D&#39; now works on all systems that could support it</p>

<p>Previously if <code>NV == long double</code>, now it is supported on all platforms that have long doubles. In particular that means it is now also supported on quadmath platforms.</p>

</li>
<li><p>Skip trying to constant fold an incomplete op tree [<a href="https://github.com/Perl/perl5/issues/18380">GH #18380</a>]</p>

<p>Constant folding of chained comparison op trees could fail under certain conditions, causing perl to crash. As a quick fix, constant folding is now skipped for such op trees. This also addresses [<a href="https://github.com/Perl/perl5/issues/17917">GH #17917</a>].</p>

</li>
<li><p><code>%g</code> formatting broken on Ubuntu-18.04, <code>NVSIZE == 8</code> [<a href="https://github.com/Perl/perl5/issues/18170">GH #18170</a>]</p>

<p>Buggy libc implementations of the <code>gcvt</code> and <code>qgcvt</code> functions caused <code>(s)printf</code> to incorrectly truncate <code>%g</code> formatted numbers. A new Configure probe now checks for this, with the result that the libc <code>sprintf</code> will be used in place of <code>gcvt</code> and <code>qgcvt</code>.</p>

<p>Tests added as part of this fix also revealed related problems in some Windows builds. The makefiles for MINGW builds on Windows have thus been adjusted to use <code>USE_MINGW_ANSI_STDIO</code> by default, ensuring that they also provide correct <code>(s)printf</code> formatting of numbers.</p>

</li>
<li><p><i>op.c</i>: croak on <code>my $_</code> when <code>use utf8</code> is in effect [<a href="https://github.com/Perl/perl5/issues/18449">GH #18449</a>]</p>

<p>The lexical topic feature experiment was removed in Perl v5.24 and declaring <code>my $_</code> became a compile time error. However, it was previously still possible to make this declaration if <code>use utf8</code> was in effect.</p>

</li>
<li><p><i>regexec.c</i>: Fix assertion failure [<a href="https://github.com/Perl/perl5/issues/18451">GH #18451</a>]</p>

<p>Fuzzing triggered an assertion failure in the regexp engine when too many characters were copied into a buffer.</p>

</li>
<li><p><a href="perlfunc.html#semctl">semctl()</a>, <a href="perlfunc.html#msgctl">msgctl()</a>, and <a href="perlfunc.html#shmctl">shmctl()</a> now properly reset the UTF-8 flag on the <code>ARG</code> parameter if it&#39;s modified for <code>IPC_STAT</code> or <code>GETALL</code> operations.</p>

</li>
<li><p><code>semctl()</code>, <code>msgctl()</code>, and <code>shmctl()</code> now attempt to downgrade the <code>ARG</code> parameter if its value is being used as input to <code>IPC_SET</code> or <code>SETALL</code> calls. A failed downgrade will thrown an exception.</p>

</li>
<li><p>In cases where <code>semctl()</code>, <code>msgctl()</code> or <code>shmctl()</code> would treat the <code>ARG</code> parameter as a pointer, an undefined value no longer generates a warning. In most such calls the pointer isn&#39;t used anyway and this allows you to supply <code>undef</code> for a value not used by the underlying function.</p>

</li>
<li><p><a href="perlfunc.html#semop">semop()</a> now downgrades the <code>OPSTRING</code> parameter, <a href="perlfunc.html#msgsnd">msgsnd()</a> now downgrades the <code>MSG</code> parameter and <a href="perlfunc.html#shmwrite">shmwrite</a> now downgrades the <code>STRING</code> parameter to treat them as bytes. Previously they would be left upgraded, providing a corrupted structure to the underlying function call.</p>

</li>
<li><p><a href="perlfunc.html#msgrcv">msgrcv()</a> now properly resets the UTF-8 flag the <code>VAR</code> parameter when it is modified. Previously the UTF-8 flag could be left on, resulting in a possibly corrupt result in <code>VAR</code>.</p>

</li>
<li><p>Magic is now called correctly for stacked file test operators. [<a href="https://github.com/Perl/perl5/issues/18293">GH #18293</a>]</p>

</li>
<li><p>The <code>@ary = split(...)</code> optimization no longer switches in the target array as the value stack. [<a href="https://github.com/Perl/perl5/issues/18232">GH #18232</a>] Also see discussion at <a href="https://github.com/Perl/perl5/pull/18014#issuecomment-671299506">https://github.com/Perl/perl5/pull/18014#issuecomment-671299506</a>.</p>

</li>
<li><p>Fixed a bug in which some regexps with recursive subpatterns matched incorrectly.</p>

<p>[<a href="https://github.com/Perl/perl5/issues/18096">GH #18096</a>]</p>

</li>
<li><p>On Win32, <code>waitpid(-1, WNOHANG)</code> could sometimes have a very large timeout. [<a href="https://github.com/Perl/perl5/issues/16529">GH #16529</a>]</p>

</li>
<li><p><code>MARK</code> and hence <code>items</code> are now correctly initialized in <code>BOOT</code> XSUBs.</p>

</li>
<li><p>Some list assignments involving <code>undef</code> on the left-hand side were over-optimized and produced incorrect results. [<a href="https://github.com/Perl/perl5/issues/16685">GH #16685</a>], [<a href="https://github.com/Perl/perl5/issues/17816">GH #17816</a>]</p>

</li>
</ul>

<h1 id="Known-Problems"><a class="permalink" href="perl5340delta.html#Known-Problems">#</a><a id="Known"></a>Known Problems</h1>

<p>None</p>

<h1 id="Errata-From-Previous-Releases"><a class="permalink" href="perl5340delta.html#Errata-From-Previous-Releases">#</a><a id="Errata"></a>Errata From Previous Releases</h1>

<p>None</p>

<h1 id="Obituary"><a class="permalink" href="perl5340delta.html#Obituary">#</a>Obituary</h1>

<p>Kent Fredric (KENTNL) passed away in February 2021. A native of New Zealand and a self-described &quot;huge geek,&quot; Kent was the author or maintainer of 178 CPAN distributions, the Perl maintainer for the Gentoo Linux distribution and a contributor to the Perl core distribution. He is mourned by his family, friends and open source software communities worldwide.</p>

<h1 id="Acknowledgements"><a class="permalink" href="perl5340delta.html#Acknowledgements">#</a>Acknowledgements</h1>

<p>Perl 5.34.0 represents approximately 11 months of development since Perl 5.32.0 and contains approximately 280,000 lines of changes across 2,100 files from 78 authors.</p>

<p>Excluding auto-generated files, documentation and release tools, there were approximately 150,000 lines of changes to 1,300 .pm, .t, .c and .h files.</p>

<p>Perl continues to flourish into its fourth decade thanks to a vibrant community of users and developers. The following people are known to have contributed the improvements that became Perl 5.34.0:</p>

<p>Aaron Crane, Adam Hartley, Andy Dougherty, Ben Cornett, Branislav Zahradník, brian d foy, Chris &#39;BinGOs&#39; Williams, Christian Walde (Mithaldu), Craig A. Berry, Dagfinn Ilmari Mannsåker, Dan Book, Daniel Böhmer, Daniel Laügt, Dan Kogai, David Cantrell, David Mitchell, Dominic Hamon, E. Choroba, Ed J, Eric Herman, Eric Lindblad, Eugene Alvin Villar, Felipe Gasper, Giovanni Tataranni, Graham Knop, Graham Ollis, Hauke D, H.Merijn Brand, Hugo van der Sanden, Ichinose Shogo, Ivan Baidakou, Jae Bradley, James E Keenan, Jason McIntosh, jkahrman, John Karr, John Lightsey, Kang-min Liu, Karen Etheridge, Karl Williamson, Keith Thompson, Leon Timmermans, Marc Reisner, Marcus Holland-Moritz, Max Maischein, Michael G Schwern, Nicholas Clark, Nicolas R., Paul Evans, Petr Písař, raiph, Renee Baecker, Ricardo Signes, Richard Leach, Romano, Ryan Voots, Samanta Navarro, Samuel Thibault, Sawyer X, Scott Baker, Sergey Poznyakoff, Sevan Janiyan, Shirakata Kentaro, Shlomi Fish, Sisyphus, Sizhe Zhao, Steve Hay, TAKAI Kousuke, Thibault Duponchelle, Todd Rinaldo, Tomasz Konojacki, Tom Hukins, Tom Stellard, Tony Cook, vividsnow, Yves Orton, Zakariyya Mughal, Михаил Козачков.</p>

<p>The list above is almost certainly incomplete as it is automatically generated from version control history. In particular, it does not include the names of the (very much appreciated) contributors who reported issues to the Perl bug tracker.</p>

<p>Many of the changes included in this version originated in the CPAN modules included in Perl&#39;s core. We&#39;re grateful to the entire CPAN community for helping Perl to flourish.</p>

<p>For a more complete list of all of Perl&#39;s historical contributors, please see the <i>AUTHORS</i> file in the Perl source distribution.</p>

<h1 id="Reporting-Bugs"><a class="permalink" href="perl5340delta.html#Reporting-Bugs">#</a><a id="Reporting"></a>Reporting Bugs</h1>

<p>If you find what you think is a bug, you might check the perl bug database at <a href="https://github.com/Perl/perl5/issues">https://github.com/Perl/perl5/issues</a>. There may also be information at <a href="http://www.perl.org/">http://www.perl.org/</a>, the Perl Home Page.</p>

<p>If you believe you have an unreported bug, please open an issue at <a href="https://github.com/Perl/perl5/issues">https://github.com/Perl/perl5/issues</a>. Be sure to trim your bug down to a tiny but sufficient test case.</p>

<p>If the bug you are reporting has security implications which make it inappropriate to send to a public issue tracker, then see <a href="perlsec.html#SECURITY-VULNERABILITY-CONTACT-INFORMATION">&quot;SECURITY VULNERABILITY CONTACT INFORMATION&quot; in perlsec</a> for details of how to report the issue.</p>

<h1 id="Give-Thanks"><a class="permalink" href="perl5340delta.html#Give-Thanks">#</a><a id="Give"></a>Give Thanks</h1>

<p>If you wish to thank the Perl 5 Porters for the work we had done in Perl 5, you can do so by running the <code>perlthanks</code> program:</p>

<pre><code class="plaintext">perlthanks</code></pre>

<p>This will send an email to the Perl 5 Porters list with your show of thanks.</p>

<h1 id="SEE-ALSO"><a class="permalink" href="perl5340delta.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</h1>

<p>The <i>Changes</i> file for an explanation of how to view exhaustive details on what changed.</p>

<p>The <i>INSTALL</i> file for how to build Perl.</p>

<p>The <i>README</i> file for general stuff.</p>

<p>The <i>Artistic</i> and <i>Copying</i> files for copyright information.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
